package com.itqf.proxy.static_proxy;

/**
 * @Description:  代理类 (经纪人，媒婆，黄牛)
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/11/10
 * @Time: 上午10:08
 */
public class ZhongJie implements  RentHouse {
    RentHouse houseMaster = null;
    public ZhongJie(RentHouse houseMaster){
        this.houseMaster = houseMaster;
    }

    @Override
    public void publishHouseInfo() {
        System.out.println("中介发布房屋信息");
        houseMaster.publishHouseInfo();

    }

    @Override
    public void lookHouse() {
        System.out.println("中介带客户看房");
        houseMaster.lookHouse();
        System.out.println("中介带客户看房完毕！！！");

    }

    @Override
    public void qianHeTong() {
            System.out.println("跟中介签合同");
              houseMaster.qianHeTong();
            System.out.println("跟中介签合同完毕");
    }

    @Override
    public void shouMoney() {
        System.out.println("中介收钱");
        houseMaster.shouMoney();
        System.out.println("中介收取中介费完毕！！");

        System.out.println("中介维修。。。。。");
    }




}
